<div id="<?php echo $uniqid;?>" style="padding:5px">
    <table border="0" width="100%" cellspacing="0" cellpadding="5">
        <tr bgcolor="#FFFFFF">
            <td><textarea style="width: 525px; height: 220px;"
                       class="forminput inputstyle validatebox-text textbox-prompt easyui-validatebox"
                       placeholder="请输入商家备注.." v-model="params.content"></textarea>
            </td>
        </tr>
    </table>
</div>
<script>
    var memoVm = new Vue({
        el: '#<?php echo $uniqid;?>',
        data: {
            params: {
                content: JSON.parse('<?php echo addslashes($content);?>'),
            },
        },
        mounted() {
            this.init();
        },
        methods: {
            init(){},
            submit(){
                $.post('/admin/order/memo', {order: ordereditVm.params, memo: memoVm.params.content}, function (data) {
                    if (data.ret === 0) {
                        ordereditVm.params.memo = data.data;
                        $("#orderdeliverydlg").dialog('close');
                    } else {
                        $.messager.alert('提示', data.msg, 'warning');
                    }
                }, 'json');
            }
        }
    });
    $(function () {
        $('#memosubmit').click(function () {
            memoVm.submit();
        });
    });
</script>
